package spring_Proxydemo1.ProxyOne;


//静态代理
public class CalculatorProxyOne implements CalculatorOne {
    private CalculatorImplOne target;

    public CalculatorProxyOne() {
    }

    public CalculatorProxyOne(CalculatorImplOne target) {
        this.target = target;
    }

    @Override
    public int  add(int i, int j) {
        int result=target.add(i, j);
        System.out.println("HelloWord!");
        return result;
    }
}
